import {
    Entity,
    PrimaryGeneratedColumn,
    Column,
    BeforeInsert
} from 'typeorm';
import * as bcrypt from 'bcryptjs'

@Entity('im_chat_status') // 指定表名称为 'im_chat_status'
export class ChatStatus {
    @Column({ comment: '消息id', })
    message_id: string;
    @Column({ comment: '接收者id', })
    receive_user_id: string;
    @Column({ comment: '状态 (例如：已读、未读)', })
    read_status: string;
    @Column({
        comment: '创建时间',
        name: 'create_time',
        type: 'timestamp',
        default: () => 'CURRENT_TIMESTAMP',
    })
    create_time: Date;
}



